/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';

//获取材料详情
export function getArithmeticExampleList(params){
  return request({
    url: `/calculationExample/list`,
    method: 'get',
    params
  });
}

// 更新
export function updateArithmeticExample(data){
  return request({
    url: `/calculationExample/update`,
    method: 'post',
    data
  });
}

// 上传
export function saveArithmeticExample(data){
  return request({
    url: `/calculationExample/save`,
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data' 
    }
  });
}

// 删除
export function deleteArithmeticExample(ids){
  return request({
    url: `/calculationExample/${ids}`,
    method: 'delete',
  });
}

// 下载
export function downloadArithmeticExample(id){
  return request({
    url: `/calculationExample/download/${id}`,
    method: 'get',
    responseType: 'blob'
  });
}